# Updated 03/16/2023 makefile to build with lusb1.0 drivers
all : LSWtest LSWhid.o

# How we create LSWhid.o
LSWhid.o : LSWhid.c LSWhid.h
	gcc -o LSWhid.o -c LSWhid.c

# The final output is one or more linked object files
LSWtest : LSWtest.c LSWhid.o LSWhid.h
	gcc LSWtest.c -o LSWtest LSWhid.o -lm -lpthread -lusb 

clean :
	rm -f LSWhid.o
	rm -f LSWtest
